home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-01-28 | 2.4 KB | 85 lines |
- # Don't use gcc here, as it doesn't understand -pic
- CC= cc
-
- CFLAGS= $(DEFS) -I../include -pic
-
- SRCS= herror.c res_comp.c res_debug.c res_init.c res_mkquery.c res_query.c \
- res_send.c gethostnamadr.c sethostent.c res_data.c
- OBJS= herror.o res_comp.o res_debug.o res_init.o res_mkquery.o res_query.o \
- res_send.o gethostnamadr.o sethostent.o res_data.o
-
- all: libc.so libc.sa
-
- libc.so: $(OBJS)
- -mkdir tmp
- cd tmp; ar x /usr/lib/shlib.etc/libc_pic.a
- -rm tmp/__.SYMDEF tmp/gethostent.o
- -mv tmp/rpc_dtablesize. tmp/rpc_dtablesize.o
- -mv tmp/rpc_commondata. tmp/rpc_commondata.o
- -mv tmp/xccs.multibyte. tmp/xccs.multibyte.o
- cp $(OBJS) tmp
- awk -f lorder.awk </usr/lib/shlib.etc/lorder-sparc >lorder-sparc
- ld -assert pure-text `/usr/lib/shlib.etc/objsort lorder-sparc tmp` -ldl
- @/bin/ls /usr/lib/libc.so.* > TMP_FILE
- @mv a.out libc.so.`cat TMP_FILE | awk -f /usr/lib/shlib.etc/awkfile`
- @echo libc.so.`cat TMP_FILE | awk -f /usr/lib/shlib.etc/awkfile` built
-
- libc.sa: $(OBJS)
- @/bin/ls /usr/lib/libc.so.* > TMP_FILE
- @/bin/ls /usr/lib/libc.sa.* > TMP_FILEA
- @/bin/cp -p /usr/lib/libc.sa.`cat TMP_FILEA | awk -f /usr/lib/shlib.etc/awkfile | awk -F. -e '{print $$1 "." $$2}'` libc.sa.`cat TMP_FILE | awk -f /usr/lib/shlib.etc/awkfile`
- ar rv libc.sa.`cat TMP_FILE | awk -f /usr/lib/shlib.etc/awkfile` res_data.o
- ranlib libc.sa.`cat TMP_FILE | awk -f /usr/lib/shlib.etc/awkfile`
-
- install: libresolv.a
- install -o bin -g bin -m 644 libresolv.a $(DESTDIR)/usr/lib
- ranlib $(DESTDIR)/usr/lib/libresolv.a
-
- herror.o: ../herror.c
- $(CC) $(CFLAGS) -c ../herror.c
-
- res_comp.o: ../res_comp.c
- $(CC) $(CFLAGS) -c ../res_comp.c
-
- res_debug.o: ../res_debug.c
- $(CC) $(CFLAGS) -c ../res_debug.c
-
- res_data.o: ../res_data.c
- $(CC) $(CFLAGS) -c ../res_data.c
-
- res_init.o: ../res_init.c
- $(CC) $(CFLAGS) -c ../res_init.c
-
- res_mkquery.o: ../res_mkquery.c
- $(CC) $(CFLAGS) -c ../res_mkquery.c
-
- res_query.o: ../res_query.c
- $(CC) $(CFLAGS) -c ../res_query.c
-
- res_send.o: ../res_send.c
- $(CC) $(CFLAGS) -c ../res_send.c
-
- gethostnamadr.o: ../gethostnamadr.c
- $(CC) $(CFLAGS) -c ../gethostnamadr.c
-
- sethostent.o: ../sethostent.c
- $(CC) $(CFLAGS) -c ../sethostent.c
-
- strpbrk.o: ../strpbrk.c
- $(CC) $(CFLAGS) -c ../strpbrk.c
-
- strerror.o: ../strerror.c
- $(CC) $(CFLAGS) -c ../strerror.c
-
- clean:
- rm -f TMP_FILE* *.o errs a.out core libc.s[ao].* lorder-sparc tags
- rm -rf tmp
-
- depend: FRC
- mkdep ${CFLAGS} ${SRCS}
-
- FRC:
-
- # DO NOT DELETE THIS LINE -- mkdep uses it.
- # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-